package com.photographysharing.dto;

import com.photographysharing.entity.Users;

import java.util.Date;

public class UserDTO {
    public UserDTO(){}
    public UserDTO(Users user){
        this.id = user.getId();
        this.name = user.getName();
        this.avatar = user.getAvatar();
        this.createTime = user.getCreateTime();
        this.email = user.getEmail();
        this.description = user.getDescription();
        this.region = user.getRegion();
        this.roleName = user.getRoleName();
        this.status = user.getStatus();
        this.userName = user.getUserName();
    }

    private String userName;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    private String id;

    private String name;

    private String email;

    private String avatar;

    private Date createTime;

    private String roleName;

    private Integer status;

    private String region;

    private String description;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
